package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 取消订单 接收数据 dto
 */
@Data
@ApiModel(value = "OrdersCancelDTO", description = "商户取消订单接受数据的模型")
public class OrdersCancelDTO implements Serializable {

    //订单id
    @ApiModelProperty(value = "订单id")
    @NotNull(message = "订单id为空")
    private Long id;

    //订单取消原因
    @ApiModelProperty(value = "订单取消原因")
    private String cancelReason;

}
